/* 液态玻璃效果底部导航栏公共样式 */
@font-face {
  font-family: 'AaHouDiHei';
  src: url('https://mp-0c81a8be-aa9a-4fae-8d6c-54b797768401.cdn.bspapp.com/cloudstorage/SmileySans-Oblique-3.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Dela Gothic One';
  src: url('https://mp-0c81a8be-aa9a-4fae-8d6c-54b797768401.cdn.bspapp.com/cloudstorage/DelaGothicOne-Regular-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'AaHouDiHei-2';
  src: url('https://mp-0c81a8be-aa9a-4fae-8d6c-54b797768401.cdn.bspapp.com/cloudstorage/AaHouDiHei-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
/* 自定义顶部导航栏样式 */
.custom-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 88rpx;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 30rpx;
  padding-top: 44px;
  padding-top: env(safe-area-inset-top);
  /* padding-top: calc(88rpx + env(safe-area-inset-top)); */
}

.nav-bar-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
}

/* 天气显示区域样式 */
.weather-display {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #f5f5f5;
  border-radius: 30rpx;
  /* flex: 1; */
  height: 60rpx;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 20rpx;
  /* max-width: 158px; */
}

/* 天气滚动区域 */
.weather-scroll {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

/* 天气滚动容器 */
.weather-scroll-container {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 10rpx;
}

/* 隐藏滚动条但保持滚动功能 */
.weather-display::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  -webkit-appearance: none;
  background: transparent;
}

.weather-display {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 天气项目样式 */
.weather-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* padding: 0 15rpx; */
  height: 100%;
  min-width: 70rpx;
  font-size: 20rpx;
}

/* 天气时间样式 */
.weather-time {
  font-size: 18rpx;
  color: #666;
  margin-top: -20rpx;
}

/* 为页面内容添加顶部间距，避免被导航栏遮挡 */
.page-with-nav {
  padding-top: calc(88rpx + env(safe-area-inset-top));
}

.liquid-glass-nav {
  position: fixed;
  bottom: env(safe-area-inset-bottom);
  left: calc(50% - 202rpx);
  right: 0;
  /* background: rgba(255, 255, 255, 0.7); */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 -8rpx 32rpx rgba(31, 38, 135, 0.15);
  z-index: 999;
  /* padding: 20rpx 0 40rpx 0; */
  width: fit-content;
  border-radius: 100px;
}

.nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600rpx;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10rpx 50rpx;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 200rpx;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 200rpx;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-item.active::before {
  opacity: 1;
}

.nav-item:active {
  transform: scale(0.95);
}

.nav-icon {
  width: 48rpx;
  height: 48rpx;
  margin-bottom: 8rpx;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
}

.home-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}

.nav-item.active .home-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007aff'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}

.court-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.nav-item.active .court-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007aff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.mine-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.nav-item.active .mine-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007aff'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.nav-text {
  font-size: 24rpx;
  color: #666;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-item.active .nav-text {
  color: #007aff;
}

.nav-item:hover .nav-text {
  color: #333;
}

.nav-item.active:hover .nav-text {
  color: #0056d3;
}